package com.heatup.apt.model.course;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 课程课时表
 */
@TableName("course_schedule")
public class CourseSchedule implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 课程id
     */
    @TableField(value = "course_id")
    private Integer courseId;

    /**
     * 时长分钟
     */
    private Integer duration;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 时分
     */
    @TableField(value = "hour_min")
    private String hourMin;

    /**
     * 周几
     */
    private Integer week;

    /**
     * 多少周
     */
    private Integer weeks;

    /**
     * 课时
     */
    private Integer periods;

    /**
     * 每周几？
     */
    private String weekly;


    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCourseId() {
        return this.courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getDuration() {
        return this.duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getHourMin() {
        return this.hourMin;
    }

    public void setHourMin(String hourMin) {
        this.hourMin = hourMin;
    }

    public Integer getWeek() {
        return this.week;
    }

    public void setWeek(Integer week) {
        this.week = week;
    }

    public Integer getWeeks() {
        return this.weeks;
    }

    public void setWeeks(Integer weeks) {
        this.weeks = weeks;
    }

    public Integer getPeriods() {
        return this.periods;
    }

    public void setPeriods(Integer periods) {
        this.periods = periods;
    }

    public String getWeekly() {
        return this.weekly;
    }

    public void setWeekly(String weekly) {
        this.weekly = weekly;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CourseSchedule{");
        sb.append("id=").append(id);
        sb.append(", courseId=").append(courseId);
        sb.append(", duration=").append(duration);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", hourMin='").append(hourMin).append('\'');
        sb.append(", week=").append(week);
        sb.append(", weeks=").append(weeks);
        sb.append(", periods=").append(periods);
        sb.append(", weekly='").append(weekly).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
